# Contributor: Dominika Liberda <ja@sdomi.pl>
# Maintainer: Dominika Liberda <ja@sdomi.pl>
pkgname=nvidia-src
pkgver=515.43.04
pkgrel=0
pkgdesc="NVIDIA Linux open GPU kernel module source (sources, AKMS)"
url="https://github.com/NVIDIA/open-gpu-kernel-modules"
arch="noarch"
license="MIT OR GPL-2.0"
depends="akms"
source="nvidia-$pkgver.tar.gz::https://github.com/NVIDIA/open-gpu-kernel-modules/archive/refs/tags/$pkgver.tar.gz
	AKMBUILD"
builddir="$srcdir/open-gpu-kernel-modules-$pkgver"
options="!check" # no tests

package() {
	mkdir -p "$pkgdir"/usr/src
	cp -r "$builddir" "$pkgdir"/usr/src/nvidia-$pkgver
	install -Dm644 "$srcdir"/AKMBUILD "$pkgdir"/usr/src/nvidia-$pkgver/AKMBUILD
}

sha512sums="
2a95132cfebe2dd746e2b507829618557a2518b56d8d77628df9f8073f154fab769604b0789e852e4cc6a52f3130b4b637068b0469931464019f8386db48041f  nvidia-515.43.04.tar.gz
c3496f79c4703c19b74f20f31d66a661a5d71c5dd4734597407dfa04316218284748fc10abe5f9bb3b778ef559f0f6705fec1c8c49ca84eae09c8f14409118d0  AKMBUILD
"
